﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace serva
{
	/// <summary>
	/// Lógica de interacción para PanelIngrediente.xaml
	/// </summary>
	public partial class PanelIngrediente : UserControl
	{
        public Ingrediente actual;
		public PanelIngrediente()
		{
			this.InitializeComponent();
		}

        public PanelIngrediente(Ingrediente ing)
        {
            this.InitializeComponent();
            this.actual = ing;
            nombre.Content = actual.yo.Nombre;
            cantidad.Text = actual.Cantidad_usada.ToString();
            unidades.Text = actual.Unidad;
            costo.Content = actual.yo.Costo;
        }

        private void costo_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            
        }

	}
}